package com.taoym.voucher.xcx.service;

import java.util.LinkedList;

/**
 * @coder taoym
 * @datetime 2021/9/23 23:01
 * @desc redis服务
 */
public interface RedisService {

    /**
     * @coder taoym
     * @datetime 2021/9/23 23:03
     * @desc 生成自增为1的UID
     */
    Long generateIncrementOneUID(String key);

    /**
     * @coder taoym
     * @datetime 2021/9/23 23:04
     * @desc 批量生成自增为1的UID
     */
    LinkedList<Long> generateIncrementOneUIDBatch(String key, Integer size);
}
